Skip to content

adds stream::skip_while combinator #223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 21, 2019
Merged

adds stream::skip_while combinator #223

merged 3 commits into from
Sep 21, 2019

Conversation

montekki
Copy link
Member

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I just have one comment.

@@ -51,6 +52,7 @@ use fold::FoldFuture;
use min_by::MinByFuture;
use next::NextFuture;
use nth::NthFuture;
use skip_while::SkipWhile;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's export SkipWhile (see lines 40-43 above).

The general policy is that we don't re-export Future types because functions that return them will eventually become async fns, while we do export Stream types.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, i see now, makes sense.

@ghost
Copy link

ghost commented Sep 21, 2019

bors r+

@bors
Copy link
Contributor

bors bot commented Sep 21, 2019

Merge conflict (retrying...)

@bors
Copy link
Contributor

bors bot commented Sep 21, 2019

Merge conflict

@ghost
Copy link

ghost commented Sep 21, 2019

bors r+

bors bot added a commit that referenced this pull request Sep 21, 2019
223: adds stream::skip_while combinator r=stjepang a=montekki

Ref: #129 
Stdlib: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.skip_while

Co-authored-by: Fedor Sakharov <fedor.sakharov@gmail.com>
@bors
Copy link
Contributor

bors bot commented Sep 21, 2019

Build succeeded

  • continuous-integration/travis-ci/push

@bors bors bot merged commit ea080e7 into async-rs:master Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant